package ${package.Controller}${cfg.moduleName};

import ${cfg.basePath}.entity.${cfg.moduleName}${entity};
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import ${cfg.basePath}.service.${cfg.moduleName}${entity}Service;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;

import javax.annotation.Resource;

/**
 * @desc ${table.comment!} API接口
 * @author sun
 * @date ${date}
 */
@CrossOrigin
@RestController
@RequestMapping("/${table.entityPath}")
@Api(value = "/${table.entityPath}", tags = {"${table.comment!} API接口"})
@ApiSupport(author = "sun")
public class ${entity}Controller{

    @Resource
    public ${entity}Service ${table.entityPath}Service;


}